<template>
	<view class="contact">
		<image src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view class="" @click="call">
				Github: https://github.com/zy7y(点击拨打10086电话)
			</view>
			<view class="">
				Gitee: https://gitee.com/zy7y
			</view>
			<!-- 地图 -->
			<map :longitude="longitude" :latitude="latitude" :markers="markers"></map>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 
				longitude: 106.516083,
				latitude: 29.633519,
				markers: [{
					longitude: 106.516083,
					latitude: 29.633519,
					iconPath: '../../static/logo.png',
					width:20,
					height:20
				}]
			}
		},
		methods: {
			// 打电话
			async call(){
				uni.makePhoneCall({
				    phoneNumber: '10086' //仅为示例
				});
			}
		}
	}
</script>

<style lang="scss">
	.contact{
		image{
			// width: 750rpx;
			height: 320rpx;
		}
		
		.info{
			padding: 10rpx 20rpx;
			font-size: 35rpx;
			view{
				line-height: 80rpx;
				border-bottom: 1rpx solid #F1F1F1;
			}
		}
		map{
			width: 100%;
			height: 750rpx;
		}
	}
</style>
